STEP 12: We will now take care of any characters in our message that aren't letters, such as spaces and symbols.

  • From , drag out Else to the bottom of the function and inside the loop. Indented two times!
  • In the next activity, we'll set up this else statement to take care of anything that isn't included in alphabet.
  • From , drag in another Add Value so that it's inside the else-statement. Indented three times!
  • Change my_var to new_message and replace the 1 with letter.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)